import '../../utils/concrete_jx2'

export function selectParkingBizs(query, queryData) {
  var data = {
    condition: {
      plateNo: queryData.plateNo
    },
    num: query.page,
    pageSize: query.limit
  }
  return concrete_jx2.module('ParkingRecordService').queryParkingRecordCurrent(data)
}

export function queryParkingRecord(query, queryData) {
  var data = {
    condition: {
      plateNo: queryData.plateNo,
      model: queryData.model,
      plateColor: queryData.plateColor,
      parkNo: queryData.parkNo,
      start: queryData.start.toString(),
      end: queryData.end.toString()
    },
    num: query.page,
    pageSize: query.limit
  }
  return concrete_jx2.module('ParkingRecordService').queryParkingBill(data)
}

/* 查询车场信息*/
export function queryParkingMsg(queryData) {
  var data = {
    condition: {
      parkName: queryData.parkName
    },
    num: queryData.pageNum,
    pageSize: queryData.pageSize
  }

  return concrete_jx2.module('ParkingRecordService').queryParkParkName(data)
}
